package android.maps;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.Button;

public class CrearViaje extends Activity{
	
	private Button button;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.crearviaje);
        button = (Button) findViewById(R.id.button1);
        button.setOnTouchListener(new OnTouchListener() {
			
			@Override
			public boolean onTouch(View arg0, MotionEvent arg1) {
				Intent cambio = new Intent(CrearViaje.this, Home.class);
				startActivity(cambio);
				onPause();
				return false;
			}
        });
    }
}
